/*s
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package auctions;
import java.util.*;


/**
 *
 * @author hangsu
 */
public class DummyAgent implements Agent {

    private AuctionHouse auctions;

    private HashMap<Integer,Double> winningItems;

    private Vector <Double> utilities;
    
    public DummyAgent(AuctionHouse house){
        this.auctions=house;
        this.winningItems=new HashMap<Integer,Double>();
        utilities = new Vector<Double>();
        for (int i= 0;i<house.getSize();i++)
            utilities.add(i,Math.random()*100.0);
    }

    public double getBid(int auctionNumber){
        double bid = this.utilities.get(auctionNumber);
        return bid;
    }

    public void addWinnings(int itemNumber, double price){
        winningItems.put(itemNumber, price);
    }

}